package com.corange.insuranceinformation;

import com.corange.insuranceinformation.common.utils.CacheUtils;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Component;

@SpringBootApplication
public class InsuranceInformationApplication {

	public static void main(String[] args) {
		SpringApplication.run(InsuranceInformationApplication.class, args);
	}
	@Component
	public class Runner implements CommandLineRunner{
		@Override
		public void run(String... args) throws Exception{
			System.out.println("init start");
			CacheUtils.initCache();
			System.out.println("init end");
		}
	}
}
